// JavaScript Document
 top.moveTo(0,0);
 top.resizeTo(screen.availWidth,screen.availHeight);
 
function contentAutoHeight(){

 var BodyHeight=screen.availHeight;
 var contentHeight=window.frames["blank"].document.getElementById("content").clientHeight;
if (window.XMLHttpRequest) { //Mozilla, Safari,...IE7 
	 //alert('Mozilla, Safari,...IE7 ');
	 
	 if(BodyHeight>contentHeight)
		{
			//alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			//document.getElementById("container").style.height=eval(BodyHeight-0)+"px";
			//document.getElementById("right").style.height=eval(BodyHeight-0)+"px";
			//alert("container:"+document.getElementById("container").style.height);
			//alert("right:"+document.getElementById("right").style.height);
		}
		 else if(BodyHeight<contentHeight)
		{
			//alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			//document.getElementById("container").style.height=contentHeight+"px";
		}
	 
	 if(!window.ActiveXObject){ // Mozilla, Safari,...
	  if(BodyHeight>contentHeight)
		{
			//alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			//document.getElementById("container").style.height=eval(BodyHeight-203)+"px";
		}
		 else if(BodyHeight<contentHeight)
		{
			//alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			//document.getElementById("container").style.height=contentHeight+"px";
		}
	  //alert('Mozilla, Safari');
	 } else {
		 
	  alert('IE7');
	  
	  if(BodyHeight-214>contentHeight)
		{
			alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(BodyHeight-214)+"px";
		}
		 else if(BodyHeight-214<contentHeight)
		{
			//alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=contentHeight+"px";
		}
	 }
	} else {
	 //alert('IE6');
	// if(BodyHeight>contentHeight)
//		{
			alert("1BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
			document.getElementById("container").style.height=eval(BodyHeight-203)+"px";
			//document.getElementById("footer").style.marginTop=eval(BodyHeight-0)+"px";
	//	}
		// else if(BodyHeight<contentHeight)
//		{
//			alert("2BodyHeight:"+BodyHeight+"contentHeight:"+contentHeight);
//			document.getElementById("container").style.height=contentHeight+"px";
//		}
	} 
	

}